package io.geekidea.boot.framework.exception;

import lombok.Getter;

/**
 * 业务异常
 *
 * @author geekidea
 * @date 2018-11-08
 */
@Getter
public class BusinessException extends RuntimeException {
    private int code;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }
}
